Thực đơn
Trigram Ví dụVới câu "the quick red fox jumps over the lazy brown dog" thì có các trigram ở cấp độ từ như sau:
the quick redquick red foxred fox jumpsfox jumps overjumps over theover the lazythe lazy brownlazy brown dog
Với một trigram ở cấp độ từ "the quick red" có các trigram ở cấp độ ký tự như sau (dấu "_" thay thế cho khoảng trắng):
thehe_e_q_ququiuicickck_k_r_rered
Thực đơn
Trigram Ví dụLiên quan
Trigram Trigrammia Trigamozeucta radiciformisTài liệu tham khảo
WikiPedia: Trigram https://kite.com/python/docs/nltk.trigrams